import Vue from "vue";
import App from "./App.vue";
import router from "./router";
import store from "./store";
import "@utils/rem";
import Vant from "vant";
import ElementUI from "element-ui";
import "element-ui/lib/theme-chalk/index.css";
import { ConfigProvider } from "ant-design-vue";

import VMdPreview from "@kangc/v-md-editor/lib/preview";
import "@kangc/v-md-editor/lib/style/base-editor.css";
import vuepressTheme from "@kangc/v-md-editor/lib/theme/vuepress.js";
import "@kangc/v-md-editor/lib/theme/style/vuepress.css";

import Prism from "prismjs";

VMdPreview.use(vuepressTheme, {
  Prism,
});

Vue.component(ConfigProvider.name, ConfigProvider);

Vue.config.productionTip = false;
Vue.use(Vant);
Vue.use(ElementUI);
Vue.use(VMdPreview);
new Vue({
  router,
  store,
  render: (h) => h(App),
}).$mount("#app");
